<?php
//函数的定义
class Day6{
	//方法实现
	function calFn($n,$m){
		$res = range($n, $m);
		$ress = implode("", $res);
		$data = substr_count($ress, 1);
		//返回值
		return $data;
	}
}
$aa = new Day6;
$aaa = $aa->calFn(100,1300);
print_r($aaa);
?>